#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = 'Jorge Maldonado Ventura'
SITENAME = 'Ducker'
SITEURL = 'http://www.freakspot.net/programas/ducker'
THEME = 'ducker-website-theme/'

PATH = 'content'
USE_FOLDER_AS_CATEGORY = True

TIMEZONE = 'Europe/Madrid'

DEFAULT_LANG = 'en'

# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = 'feeds/all-%s.atom.xml'
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

# Social widget
SOCIAL = (('NotABug', 'https://notabug.org/Ducker'),)

DEFAULT_PAGINATION = 3

# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True


# Theme specific
# all the following settings are *optional*

# HTML metadata
SITEDESCRIPTION = 'Ducker is a program that makes searches from the command line using DuckDuckGo. This is its website.'

# all defaults to True.
DISPLAY_HEADER = True
DISPLAY_FOOTER = True
DISPLAY_HOME   = True
DISPLAY_MENU   = True

# Documentation URL
# Edit documentation in Ducker repository: https://notabug.org/Ducker/ducker
DOCS_URL = 'docs'

# Tags
TAG_URL      = 'tag/{slug}/'
TAG_SAVE_AS  = 'tag/{slug}/index.html'
TAGS_URL     = 'tags'
TAGS_SAVE_AS = 'tags/index.html'

# Authors
AUTHOR_URL      = 'author/{slug}/'
AUTHOR_SAVE_AS  = 'author/{slug}/index.html'
AUTHORS_URL     = 'authors'
AUTHORS_SAVE_AS = 'authors/index.html'

# Categories
CATEGORY_URL = 'category/{slug}/'
CATEGORY_SAVE_AS = 'category/{slug}/index.html'
CATEGORIES_URL     = 'categories'
CATEGORIES_SAVE_AS = 'categories/index.html'

ARCHIVES_URL       = 'archives'
ARCHIVES_SAVE_AS   = 'archives/index.html'

PAGINATION_PATTERNS = (
    (1, '{base_name}/', '{base_name}/index.html'),
    (2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
)

# use those if you want pelican standard pages to appear in your menu
MENU_INTERNAL_PAGES = (
    ('Documentation', DOCS_URL, DOCS_URL + '/index.html'),
    ('Tags', TAGS_URL, TAGS_SAVE_AS),
    ('Archives', ARCHIVES_URL, ARCHIVES_SAVE_AS),
)

# Languages (useful if translations are used)
LANGS = ['en', 'es']
DATE_FORMATS = {
    'en': '%Y-%m-%d',
    'es': '%d/%m/%Y',
}

STATIC_PATHS = ['favicon.ico', 'favicon.png']
